package org.moonlight.jvm.classfile.attribute;

import org.moonlight.jvm.classfile.ClassReader;

/**
 * 未识别的属性信息
 *
 * @author Moonlight
 * @createTime 2023/8/15 15:53
 **/
public class UnparsedAttribute implements AttributeInfo {

    private final String name;
    private final int length;
    private byte[] info;

    public UnparsedAttribute(String name, int length) {
        this.name = name;
        this.length = length;
    }

    @Override
    public void readInfo(ClassReader reader) {
        this.info = reader.readBytes(this.length);
    }
}
